//
//  PKReadCollectionViewCell.m
//  PianKe
//
//  Created by lanou on 15/10/12.
//  Copyright (c) 2015年 李伟伟. All rights reserved.
//

#import "PKReadCollectionViewCell.h"
#import <UIImageView+WebCache.h>
@implementation PKReadCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        _coverimgView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, (SCREEN_WITDTH-12)/3, (SCREEN_WITDTH-12)/3)];
        _bottomLabel = [[UILabel alloc]initWithFrame:CGRectMake(2, (SCREEN_WITDTH-12)/3-15, (SCREEN_WITDTH-12)/3, 15)];
        
        [_coverimgView addSubview:_bottomLabel];
        [self addSubview:_coverimgView];
        
    }
    return self;
}


-(void)setConfigureModel:(PKCollectionViewModel *)configureModel
{
    _configureModel = configureModel;
    [_coverimgView sd_setImageWithURL:[NSURL URLWithString:_configureModel.coverimg]];
    _bottomLabel.text = [NSString stringWithFormat:@"%@%@",_configureModel.name,_configureModel.enname];
}

@end
